/*
** Mortem's HGE Addon 1.3
** Copyright (C) 2006-2007, Osokin 'elmortem' Makar
** http://elmortem.mirgames.ru
**
** MHA GUI loader.
*/

#ifndef _MHAGUILOADER_H_
#define _MHAGUILOADER_H_

#include <hge.h>
#include <hgegui.h>
#include <hgeresource.h>
#include <hgestrings.h>
#include <mhaengine.h>
#include <mhaguictrls.h>
#include <mhacfg.h>

enum {
	MHAGUI_WINDOW = 1,
	MHAGUI_CHECK,
	MHAGUI_TEXTBUTTON,
	MHAGUI_INPUT,
	MHAGUI_SCROLL,
	MHAGUI_TEXT,
	MHAGUI_LISTBOX
};

class mhaGuiLoader {
public:
	mhaGuiLoader(const HGE_CHAR *filename, hgeGUI *gui, hgeResourceManager *resource, hgeStringTable *strings);
	~mhaGuiLoader(void);
	
	void Add(int id, int type, const HGE_CHAR *section, int param = 0);
	
protected:
	static HGE *hge;
	//mhaEngine *Engine;
	hgeGUI *Gui;
	hgeResourceManager *Res;
	hgeStringTable *Str;
	mhaIni *Ini;
};

#endif